<%@ page contentType="text/html;charset=UTF-8"%>

<link rel="stylesheet" href="${az}/assets/css/bootstrap.min.css">
<%--<link rel="stylesheet" href="${az}/assets/css/font-awesome.min.css">--%>
<link rel="stylesheet" href="${az}/assets/css/nprogress.css">
<link rel="stylesheet" href="${az}/assets/css/animate.min.css">
<link rel="stylesheet" href="${az}/assets/css/custom.min.css">

<link rel="stylesheet" type="text/css" href="${az}/assets/themes/metro/easyui.css">
<%--<link rel="stylesheet" type="text/css" href="${az}/assets/themes/icon.css">--%>

<script src="${az}/assets/js/jquery-1.8.0.min.js"></script>
<script src="${az}/assets/js/jquery.easyui.min.js"></script>
<script src="${az}/assets/js/jquery.form.js"></script>


<script src="${az}/assets/locale/easyui-lang-zh_CN.js"></script>

<%--<link href="http://cdn.bootcss.com/font-awesome/4.3.0/css/font-awesome.min.css" rel="stylesheet">--%>
<link rel="stylesheet" href="${az}/assets/css/font-awesome.min.css">

<style>

    /** frame *******************************/

    body {
        margin: 0px;
    }
    .accordion-header-selected {
        background-color: #E0ECFF;
    }

    .layout-panel-west .panel-header, .layout-panel-west .panel-body {
        background-color: #2A3F54;
    }

    .panel-header-noborder {
        border-width: 0 0 0px 0;
    }

    .panel {
        margin-bottom: 20px;
        border: 0px solid transparent;
    }

    .panel-title {
        padding-left: 15px;
        color: #fff;
        text-transform: uppercase;
        letter-spacing: .5px;
        font-weight: 700;
        font-size: 11px;
        margin-bottom: 0;
        margin-top: 0;
        text-shadow: 1px 1px #000;
    }

    .accordion {
        color: #E7E7E7;
        font-weight: 500;
        background: #2A3F54;
    }

    /** common-tree *******************************/

    .tree ul li:before {
        border-left: 1px solid #425668;
        content: "";
        left: 27px;
        position: absolute;
        height:49px;
        z-index: 1;
    }
    .tree ul li:after {
        background: #425668;
        bottom: auto;
        content: "";
        height: 8px;
        left: 23px;
        margin-top: -28px;
        position: absolute;
        right: auto;
        width: 8px;
        border-radius: 50%;
    }

    .tree-node {
        height: auto;
    }

    .tree-title {
        height: auto;
        line-height: 24px;
    }

    .tree-node, .tree-node-selected, .tree-node-hover {
        font-family: "Helvetica Neue",Roboto,Arial,"Droid Sans",sans-serif;
        padding: 13px 15px 12px;
    }

    .tree-node{
    }

    .tree-node-selected, .tree-node-hover {
        color: #E7E7E7;
        font-weight: 500;
        text-shadow: rgba(0,0,0,.25) 0 -1px 0;
        background: linear-gradient(#334556,#2C4257),#2A3F54;
        box-shadow: rgba(0,0,0,.25) 0 1px 0,inset rgba(255,255,255,.16) 0 1px 0;
        /*border-right: 5px solid #1ABB9C;*/
    }

    .tree ul {
        /*border-right: 5px solid #1ABB9C;*/
        background: #1C3044;
    }

    .tree ul .tree-node-selected, .tree ul .tree-node-hover {
        background: rgba(255, 255, 255, .05);
    }

    .tree-file, .tree-indent, tree-folder-open, .tree-hit, .tree-expanded, .tree-icon {
        background: #fff;
        width:0px;
    }

    .treespan, .treespan:hover, .treespan:checked {
        color: #E7E7E7;
        padding-left: 10px;
        display: inline-block;
    }

    .treespan-second, .treespan-second:hover, .treespan-second:checked {
        padding-left: 25px;
    }

    .fa {
        font-size: 24px;
        top:3px;
        position: relative;
    }
</style>

<script>

    // 全局变量
    var $AzerothData = {};

    // 保存所有方法
    $AzerothData.methods = {};

    $AzerothData.statusCode = function(_data) {
        _data = eval("("+_data+")");
        if(_data.state==0) {
            return true;
        }

        if(_data.code="E0103") {
            alert("当前管理员不存在");
        } else {
            alert(_data.msg);
        }
        return false;
    }

    $AzerothData.methods.addTabs = function(_name, _url, _id) {
        if(_url=="#") {
            return false;
        }

        var content = '<iframe scrolling="auto" frameborder="0"  src="'+_url+'" style="width:100%;height:100%;"></iframe>';

        if($("#tabs").tabs("exists", _name)) {
            $('#tabs').tabs('select', _name);
            var current_tab = $('#tabs').tabs('getSelected');

            $('#tabs').tabs('update', {
                tab: current_tab,
                options: {
                    href: _url  // 新内容的URL
                }
            });

        } else {
            $('#tabs').tabs('add',{
                title: _name,
                //content: content,
                closable:true,
                href: _url
            });
        }

    }
</script>
